package com.myschool;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@SpringBootApplication
@RestController
public class MySchoolApplication {

    public static void main(String[] args) {
        SpringApplication.run(MySchoolApplication.class,args);
    }

    @RequestMapping("/hello")
    public Object hello(){
        HashMap<String,Object> map = new HashMap<>();
        map.put("code",200);
        map.put("message","成功了");
        map.put("data",System.currentTimeMillis());
        return map;
    }
}
